home *** CD-ROM | disk | FTP | other *** search
- From: envbvs@epb2.lbl.gov (Brian V. Smith)
- Newsgroups: comp.sources.x
- Subject: v06i094: xfig 2.0, Patch7, Part01/01
- Message-ID: <134880@sun.Eng.Sun.COM>
- Date: 26 Apr 90 17:54:23 GMT
- Approved: argv@sun.com
-
- Submitted-by: envbvs@epb2.lbl.gov (Brian V. Smith)
- Posting-number: Volume 6, Issue 94
- Archive-name: xfig2/patch7
-
- There were three problems with the patches for patch level 6.
- The two diffs for panel.h and psfonts.c didn't apply at all.
- The diff file for search.c had been applied in patch 4, and
- patch thought it might be a reversed patch format. DO NOT
- APPLY this diff for search.c.
-
- If you HAVE applied a REVERSED patch for search.c, apply the
- patch again to make the following lines look like this:
-
- line #
- 65: if(a * dy == 0 && b * dx == 0)
- 66: r = 0; /* prevent core dumps */
- 67: else
- 68: r = a * b * dis / sqrt((double) (1.0*b*b*dx*dx + 1.0*a*a*dy*dy));
-
-
- Here are the correct patches for those files and a new bug fix
- for f2ps.c. This is called patch 7.
-
- Sorry for any inconvenience this may have caused.
-
- Brian Smith
-
- ------------------------ you know what to do here -----------------------------
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of archive 1 (of 1)."
- # Contents: CHANGES.diff f2ps.c.diff panel.h.diff patchlevel.h.diff
- # psfonts.c.diff
- # Wrapped by envbvs@epb2.lbl.gov on Thu Apr 26 09:41:08 1990
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'CHANGES.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'CHANGES.diff'\"
- else
- echo shar: Extracting \"'CHANGES.diff'\" \(554 characters\)
- sed "s/^X//" >'CHANGES.diff' <<'END_OF_FILE'
- X*** CHANGES.old Tue Apr 24 11:33:30 1990
- X--- CHANGES Thu Apr 26 09:37:55 1990
- X***************
- X*** 1,5
- X Version 2.0
- X
- X Patchlevel 6
- X Changes from patchlevel 5:
- X
- X
- X--- 1,14 -----
- X Version 2.0
- X
- X+ Patchlevel 7
- X+ Changes from patchlevel 6:
- X+
- X+ o New patch files for psfonts.c, panel.h to fix problems with those
- X+ files in patch level 6
- X+ o The patch for search.c in patch 6 was an old patch and should
- X+ not be applied
- X+ o Bug fix for f2ps where figure went off the page in landscape mode
- X+
- X Patchlevel 6
- X Changes from patchlevel 5:
- X
- END_OF_FILE
- if test 554 -ne `wc -c <'CHANGES.diff'`; then
- echo shar: \"'CHANGES.diff'\" unpacked with wrong size!
- fi
- # end of 'CHANGES.diff'
- fi
- if test -f 'f2ps.c.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'f2ps.c.diff'\"
- else
- echo shar: Extracting \"'f2ps.c.diff'\" \(489 characters\)
- sed "s/^X//" >'f2ps.c.diff' <<'END_OF_FILE'
- X*** f2ps.c.old Mon Apr 23 14:44:04 1990
- X--- f2ps.c Wed Apr 25 13:30:18 1990
- X***************
- X*** 270,276
- X origx = tx - llx;
- X if (landscape)
- X origx=0;
- X! origx -= (dx-llx);
- X urx = (llx=tx) + dx;
- X ury = (PAGE_HEIGHT + dy) / 2.0;
- X if (coord_system == 2)
- X
- X--- 270,276 -----
- X origx = tx - llx;
- X if (landscape)
- X origx=0;
- X! /* origx -= (dx-llx); */
- X urx = (llx=tx) + dx;
- X ury = (PAGE_HEIGHT + dy) / 2.0;
- X if (coord_system == 2)
- END_OF_FILE
- if test 489 -ne `wc -c <'f2ps.c.diff'`; then
- echo shar: \"'f2ps.c.diff'\" unpacked with wrong size!
- fi
- # end of 'f2ps.c.diff'
- fi
- if test -f 'panel.h.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'panel.h.diff'\"
- else
- echo shar: Extracting \"'panel.h.diff'\" \(3112 characters\)
- sed "s/^X//" >'panel.h.diff' <<'END_OF_FILE'
- X*** @oldpatch/panel.h.old Wed Apr 25 09:47:45 1990
- X--- panel.h Wed Apr 25 09:49:47 1990
- X***************
- X*** 486,518
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, };
- X mpr_static(text_ic, 32, 32, 1, text_image);
- X
- X! static char change_style_image[128]={
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x02,0x00,0x10,0x00,0x02,0x00,0x10,0x00,0x02,0x00,0x00,
- X! 0x00,0x01,0x00,0x08,0x00,0x01,0x00,0x08,0x00,0x01,0x00,0x00,
- X! 0x80,0x00,0x00,0x04,0x80,0x20,0x04,0x04,0x80,0x30,0x0c,0x00,
- X! 0x40,0x18,0x18,0x02,0x40,0xfc,0x3f,0x02,0x40,0xfc,0x3f,0x00,
- X! 0x20,0x18,0x18,0x01,0x20,0x30,0x0c,0x01,0x20,0x20,0x04,0x00,
- X! 0x10,0x00,0x80,0x00,0x10,0x00,0x80,0x00,0x10,0x00,0x00,0x00,
- X! 0x08,0x00,0x40,0x00,0x08,0x00,0x40,0x00,0x08,0x00,0x00,0x00,
- X! 0x04,0x00,0x20,0x00,0x04,0x00,0x20,0x00,0x04,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
- X! mpr_static(change_style_ic, 32, 32, 1, change_style_image);
- X!
- X! static char change_thick_image[128]={
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x0f,0x00,0x04,0x00,0x0f,
- X! 0x00,0x02,0x80,0x07,0x00,0x02,0x80,0x07,0x00,0x02,0x80,0x07,
- X! 0x00,0x01,0xc0,0x03,0x00,0x81,0xc0,0x03,0x00,0x81,0xc1,0x03,
- X! 0x80,0x00,0xe3,0x01,0x80,0xf8,0xe7,0x01,0x80,0xf8,0xe7,0x01,
- X! 0x80,0x00,0xe3,0x01,0x40,0x80,0xf1,0x00,0x40,0x80,0xf0,0x00,
- X! 0x40,0x00,0xf0,0x00,0x20,0x00,0x78,0x00,0x20,0x00,0x78,0x00,
- X! 0x20,0x00,0x78,0x00,0x10,0x00,0x3c,0x00,0x10,0x00,0x3c,0x00,
- X! 0x10,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
- X! mpr_static(change_thick_ic, 32, 32, 1, change_thick_image);
- X
- X static char incdec_thick_image[128]={
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X
- X--- 486,504 -----
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, };
- X mpr_static(text_ic, 32, 32, 1, text_image);
- X
- X! static char change_image[128] = {
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00,
- X! 0x08, 0x04, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x08, 0x34, 0xf0, 0x0e,
- X! 0x08, 0xc4, 0x08, 0x10, 0x08, 0x04, 0x0b, 0x10, 0x08, 0x04, 0x08, 0x10,
- X! 0x08, 0x04, 0x00, 0x00, 0x08, 0x04, 0x08, 0x10, 0x08, 0x04, 0x08, 0x10,
- X! 0x08, 0xb4, 0x09, 0x10, 0x08, 0x04, 0x00, 0x00, 0x08, 0x04, 0x08, 0x10,
- X! 0x08, 0x04, 0x08, 0x10, 0x08, 0x04, 0x08, 0x10, 0x08, 0x04, 0x00, 0x00,
- X! 0x08, 0x04, 0xeb, 0x16, 0x08, 0xc4, 0x00, 0x00, 0x08, 0x34, 0x00, 0x00,
- X! 0x08, 0x04, 0x00, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
- X! mpr_static(change_ic, 32, 32, 1, change_image);
- X
- X static char incdec_thick_image[128]={
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- END_OF_FILE
- if test 3112 -ne `wc -c <'panel.h.diff'`; then
- echo shar: \"'panel.h.diff'\" unpacked with wrong size!
- fi
- # end of 'panel.h.diff'
- fi
- if test -f 'patchlevel.h.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'patchlevel.h.diff'\"
- else
- echo shar: Extracting \"'patchlevel.h.diff'\" \(169 characters\)
- sed "s/^X//" >'patchlevel.h.diff' <<'END_OF_FILE'
- X*** patchlevel.h.old Thu Apr 5 17:42:55 1990
- X--- patchlevel.h Thu Apr 26 09:34:54 1990
- X***************
- X*** 1
- X! #define PATCHLEVEL 6
- X
- X--- 1 -----
- X! #define PATCHLEVEL 7
- END_OF_FILE
- if test 169 -ne `wc -c <'patchlevel.h.diff'`; then
- echo shar: \"'patchlevel.h.diff'\" unpacked with wrong size!
- fi
- # end of 'patchlevel.h.diff'
- fi
- if test -f 'psfonts.c.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'psfonts.c.diff'\"
- else
- echo shar: Extracting \"'psfonts.c.diff'\" \(4528 characters\)
- sed "s/^X//" >'psfonts.c.diff' <<'END_OF_FILE'
- X*** @oldpatch/psfonts.c.old Wed Apr 25 09:54:52 1990
- X--- psfonts.c Wed Apr 11 09:20:20 1990
- X***************
- X*** 7,48
- X
- X #ifndef TFX
- X struct _fstruct fontnames[NUMFONTS] = {
- X! {"Times-Roman", "-adobe-times-medium-r-*--*", NULL},
- X! {"Times-Italic", "-adobe-times-medium-i-*--*", NULL},
- X! {"Times-Bold", "-adobe-times-bold-r-*--*", NULL},
- X! {"Times-BoldItalic", "-adobe-times-bold-i-*--*", NULL},
- X! {"AvantGarde", "NONE", NULL},
- X! {"AvantGarde-BookOblique", "NONE", NULL},
- X! {"AvantGarde-Demi", "NONE", NULL},
- X! {"AvantGarde-DemiOblique", "NONE", NULL},
- X! {"Bookman-Light", "NONE", NULL},
- X! {"Bookman-LightItalic", "NONE", NULL},
- X! {"Bookman-Demi", "NONE", NULL},
- X! {"Bookman-DemiItalic", "NONE", NULL},
- X! {"Courier", "-adobe-courier-medium-r-*--*", NULL},
- X! {"Courier-Oblique", "-adobe-courier-medium-o-*--*", NULL},
- X! {"Courier-Bold", "-adobe-courier-bold-r-*--*", NULL},
- X! {"Courier-BoldItalic", "-adobe-courier-bold-o-*--*", NULL},
- X! {"Helvetica", "-adobe-helvetica-medium-r-*--*", NULL},
- X! {"Helvetica-Oblique", "-adobe-helvetica-medium-o-*--*", NULL},
- X! {"Helvetica-Bold", "-adobe-helvetica-bold-r-*--*", NULL},
- X! {"Helvetica-BoldOblique", "-adobe-helvetica-bold-o-*--*", NULL},
- X! {"Helvetica-Narrow", "NONE", NULL},
- X! {"Helvetica-Narrow-Oblique", "NONE", NULL},
- X! {"Helvetica-Narrow-Bold", "NONE", NULL},
- X! {"Helvetica-Narrow-BoldOblique", "NONE", NULL},
- X! {"NewCenturySchlbk-Roman", "-adobe-new century schoolbook-medium-r-*--*", NULL},
- X! {"NewCenturySchlbk-Italic", "-adobe-new century schoolbook-medium-i-*--*", NULL},
- X! {"NewCenturySchlbk-Bold", "-adobe-new century schoolbook-bold-r-*--*", NULL},
- X! {"NewCenturySchlbk-BoldItalic", "-adobe-new century schoolbook-bold-i-*--*", NULL},
- X! {"Palatino-Roman", "NONE", NULL},
- X! {"Palatino-Italic", "NONE", NULL},
- X! {"Palatino-Bold", "NONE", NULL},
- X! {"Palatino-BoldItalic", "NONE", NULL},
- X! {"Symbol", "*-symbol-medium-r-*--*", NULL},
- X! {"ZapfChancery-MediumItalic", "-*-zapfchancery-medium-i-*--*", NULL},
- X! {"ZapfDingbats", "-*-zapfdingbats-*-*-*--*", NULL},
- X! };
- X #else
- X struct _fstruct fontnames[NUMFONTS] = {
- X {"Default", "-adobe-times-medium-r-*--*", NULL},
- X
- X--- 7,48 -----
- X
- X #ifndef TFX
- X struct _fstruct fontnames[NUMFONTS] = {
- X! {"Times-Roman", "-adobe-times-medium-r-*--*", NULL},
- X! {"Times-Italic", "-adobe-times-medium-i-*--*", NULL},
- X! {"Times-Bold", "-adobe-times-bold-r-*--*", NULL},
- X! {"Times-BoldItalic", "-adobe-times-bold-i-*--*", NULL},
- X! {"AvantGarde-Book", "-schumacher-clean-medium-r-*--*", NULL} ,
- X! {"AvantGarde-BookOblique", "-schumacher-clean-medium-i-*--*", NULL} ,
- X! {"AvantGarde-Demi", "-schumacher-clean-bold-r-*--*", NULL},
- X! {"AvantGarde-DemiOblique", "-schumacher-clean-bold-i-*--*", NULL},
- X! {"Bookman-Light", "NONE", NULL},
- X! {"Bookman-LightItalic", "NONE", NULL},
- X! {"Bookman-Demi", "NONE", NULL},
- X! {"Bookman-DemiItalic", "NONE", NULL},
- X! {"Courier", "-adobe-courier-medium-r-*--*", NULL},
- X! {"Courier-Oblique", "-adobe-courier-medium-o-*--*", NULL},
- X! {"Courier-Bold", "-adobe-courier-bold-r-*--*", NULL},
- X! {"Courier-BoldOblique", "-adobe-courier-bold-o-*--*", NULL},
- X! {"Helvetica", "-adobe-helvetica-medium-r-*--*", NULL},
- X! {"Helvetica-Oblique", "-adobe-helvetica-medium-o-*--*", NULL},
- X! {"Helvetica-Bold", "-adobe-helvetica-bold-r-*--*", NULL},
- X! {"Helvetica-BoldOblique", "-adobe-helvetica-bold-o-*--*", NULL},
- X! {"Helvetica-Narrow", "NONE", NULL},
- X! {"Helvetica-Narrow-Oblique", "NONE", NULL},
- X! {"Helvetica-Narrow-Bold", "NONE", NULL},
- X! {"Helvetica-Narrow-BoldOblique","NONE", NULL},
- X! {"NewCenturySchlbk-Roman", "-adobe-new century schoolbook-medium-r-*--*", NULL},
- X! {"NewCenturySchlbk-Italic", "-adobe-new century schoolbook-medium-i-*--*", NULL},
- X! {"NewCenturySchlbk-Bold", "-adobe-new century schoolbook-bold-r-*--*", NULL},
- X! {"NewCenturySchlbk-BoldItalic", "-adobe-new century schoolbook-bold-i-*--*", NULL},
- X! {"Palatino-Roman", "-*-lucidabright-medium-r-*--*", NULL},
- X! {"Palatino-Italic", "-*-lucidabright-medium-i-*--*", NULL},
- X! {"Palatino-Bold", "-*-lucidabright-demibold-r-*--*", NULL} ,
- X! {"Palatino-BoldItalic", "-*-lucidabright-demibold-i-*--*", NULL} ,
- X! {"Symbol", "*-symbol-medium-r-*--*", NULL},
- X! {"ZapfChancery-MediumItalic", "-*-zapfchancery-medium-i-*--*", NULL},
- X! {"ZapfDingbats", "-*-zapfdingbats-*-*-*--*", NULL},
- X! };
- X #else
- X struct _fstruct fontnames[NUMFONTS] = {
- X {"Default", "-adobe-times-medium-r-*--*", NULL},
- END_OF_FILE
- if test 4528 -ne `wc -c <'psfonts.c.diff'`; then
- echo shar: \"'psfonts.c.diff'\" unpacked with wrong size!
- fi
- # end of 'psfonts.c.diff'
- fi
- echo shar: End of archive 1 \(of 1\).
- cp /dev/null ark1isdone
- MISSING=""
- for I in 1 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have the archive.
- rm -f ark[1-9]isdone
- else
- echo You still need to unpack the following archives:
- echo " " ${MISSING}
- fi
- ## End of shell archive.
- exit 0
-
- dan
- ----------------------------------------------------
- O'Reilly && Associates argv@sun.com / argv@ora.com
- Opinions expressed reflect those of the author only.
-